//引入createApp函数用于创建应用
import { createApp } from 'vue'
// 引入App根组件
import App from './App.vue'
// 引入pinia用于状态管理(菠萝仔🍍)
import { createPinia } from 'pinia'


import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 挂载应用到#app上
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')